package com.study;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.turbine.EnableTurbine;
import org.springframework.context.ConfigurableApplicationContext;

/**
 *
 * **********************************注：cppy url有空格时，turbin无法监控*******************************************
 *
 *
 * turbine监控单个集群
 * http://127.0.0.1:8031/turbine.stream?cluster=SUNXJ-MICROSERVICE-CONSUMER-MOVIE-FEIGN-WITHHYSTRIX-FALLBACKFACTORY
 *
 *
 *
 * turbine监控多个集群：
 * http://172.0.0.1:8031/turbine.stream
 *
 * Circuit {"Closed":1,"Open":1})集群中两个节点，一个close，一个open
 *
 */
@SpringBootApplication
@EnableTurbine
public class TurbineApp1 {
	
	public static void main(String[] args) {
		SpringApplication application = new SpringApplication(TurbineApp1.class);
		ConfigurableApplicationContext context = application.run(args);
		
		
		System.out.println("============end=======================");
	}

}
